package com.chixing.day02;
/*
* 排序工具类
* 提供了常用的排序算法 如 冒泡排序、选择排序、快速排序、插入排序
* */


public class SortUtil {
    public static int[] bubboSort(int[] arr1){
        for (int i = 0;i < arr1.length;i++){
            for (int j = 0;j <arr1.length-i-1;j++){
                if (arr1[j] > arr1[j+1]){
                    int temp = arr1[j];
                    arr1[j] = arr1[j+1];
                    arr1[j+1] = temp;
                }

            }
            System.out.println(arr1[i]);
        }

        return arr1;
    }


    public static int[] quickSort(int[] original){
        return  null;
    }
}
